<template>
  <div class="home">
    <el-container>
      <el-header>
        <Header />
      </el-header>
      <el-container>
        <el-aside width="fit-content">
          <Aside />
        </el-aside>
        <el-main>
          <Breadcrumb />
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang="ts">
import { provide, ref } from "vue";
import Aside from "./components/Aside.vue";
import Header from "./components/Header.vue";
import Breadcrumb from "@/components/Breadcrumb.vue";

const isCollapse = ref(false);
provide("isCollapse", isCollapse);
</script>

<style scoped lang="less">
.home {
  height: 100%;
  :deep(.el-header) {
    height: 70px;
    background-color: #409eff;
  }
  :deep(.el-aside) {
    height: calc(100vh - 70px);
    background-color: #304156;
    &::-webkit-scrollbar {
      width: 0;
    }
  }
  :deep(.el-main) {
    height: calc(100vh - 70px);
  }
  :deep(.el-menu) {
    border: 0;
  }
}
</style>
